<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
  </style>
</head>

<body>
  <div class="tab"> </div>
  <div class="tab2"> </div>
</body>
<script src="./eltab.js"></script>
<script>
  var mytab = new Tab({
    ele: ".tab",
    list: ["军事", "视频", "代码", "科技"], //可以改变导航的内容
    colorList: ["red", "green", "blue", "yellow"], //可以改变内容的颜色
    width: "500px", //整个tab切换的宽度
    height: "300px",//整个tab的高度
    liHeight: "45px", //改变li的高度
    position: "left"//left 左侧  top 上方导航
  })
  var mytab2 = new Tab({
    ele: ".tab2",
    list: ["新闻", "世界", "美女", "野兽"], //可以改变导航的内容
    colorList: ["red", "green", "blue", "yellow"], //可以改变内容的颜色
    width: "500px", //整个tab切换的宽度
    height: "300px",//整个tab的高度
    liHeight: "45px", //改变li的高度
    position: "left"//left 左侧  top 上方导航
  })


</script>

</html>